// 手机登录
<template>
    <div>
    <el-form  :model="formData" label-width="70px">
      <el-form-item label="手机号" required>
        <el-input placeholder="请输入手机号" maxlength="11" v-model="formData.phone"></el-input>
      </el-form-item>

      <el-form-item label="验证码" required>
        <el-col :span="12"><el-input placeholder="验验证码" v-model="formData.code" style="width: 90%;"></el-input></el-col>
        <el-col ><el-button type="primary">获取验证码</el-button></el-col>
      </el-form-item>
    </el-form>
    </div>
</template>

<script>
import { defineComponent, reactive } from 'vue'
export default defineComponent({
  setup () {
    const formData = reactive({
      phone: '',
      code: ''
    })
    const loginAction = () => {
      console.log('我是手机号登录的方法')
    }
    return {
      formData,
      loginAction
    }
  }
})
</script>

<style lang="less" scoped>

</style>
